﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

using DM_Article.Model;
using DM_Article.Bll;

public partial class index : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        using (SqlConnection cn = new SqlConnection(ConfigurationManager.AppSettings["ConnectionString"].ToString()))
        {
            DataSet ds;
            //for  焦点新闻
            ds = articlebll.getArticleBySmallclassidDatasetTop(cn, 7, 6);
            this.repeaterJDXW.DataSource = ds;
            this.repeaterJDXW.DataBind();

            //for  院校合作
            ds = articlebll.getArticleBySmallclassidDatasetTop(cn, 7, 6);
            this.repeaterYXHZ.DataSource = ds;
            this.repeaterYXHZ.DataBind();

            //for  海外留学
            ds = articlebll.getArticleBySmallclassidDatasetTop(cn, 7, 6);
            this.repeaterHWLX.DataSource = ds;
            this.repeaterHWLX.DataBind();

            //for  海外移民
            ds = articlebll.getArticleBySmallclassidDatasetTop(cn, 7, 6);
            this.repeaterHWYM.DataSource = ds;
            this.repeaterHWYM.DataBind();

            //for  海外移民
            ds = articlebll.getArticleBySmallclassidDatasetTop(cn, 7, 6);
            this.repeaterHWYM.DataSource = ds;
            this.repeaterHWYM.DataBind();

             //for  出国社区
            ds = articlebll.getArticleBySmallclassidDatasetTop(cn, 7, 6);
            this.repeaterCGSQ.DataSource = ds;
            this.repeaterCGSQ.DataBind();

             //for  讲座与面试
            ds = articlebll.getArticleBySmallclassidDatasetTop(cn, 7, 6);
            this.repeaterJZYMS.DataSource = ds;
            this.repeaterJZYMS.DataBind();

             //for  市场推广
            ds = articlebll.getArticleBySmallclassidDatasetTop(cn, 7, 6);
            this.repeaterSCTG.DataSource = ds;
            this.repeaterSCTG.DataBind();
        }
    }
}